<?php

include_once dirname(__FILE__)."/../util/MysqlUtil.php";
/**
 * Created by PhpStorm.
 * User: robert
 * Date: 2015/4/22
 * Time: 15:55
 */
class OrgModel {


    /**
     * 获取组织信息
     * @param $id
     * @return array
     */
    static function info($id){

        $sql="select id,name,shortname,province,city,district,regAddress,demo from organization WHERE  id=$id";

        $mysql=new MysqlUtil();

        $result=$mysql->query($sql);

        if(empty($result)) return array();

        return $result[0];
    }

}